home *** CD-ROM | disk | FTP | other *** search
- using System;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using System.ComponentModel;
-
- namespace [!Namespace]
- {
- /// <summary>
- /// Summary description for [!CustomControlName].
- /// </summary>
- [DefaultProperty("Text"),
- ToolboxData("<{0}:[!CustomControlName] runat=server></{0}:[!CustomControlName]>")]
- public class [!CustomControlName] : System.Web.UI.WebControls.WebControl
- {
- private string text;
-
- [Bindable(true),
- Category("Appearance"),
- DefaultValue("")]
- public string Text
- {
- get
- {
- return text;
- }
-
- set
- {
- text = value;
- }
- }
-
- /// <summary>
- /// Render this control to the output parameter specified.
- /// </summary>
- /// <param name="output"> The HTML writer to write out to </param>
- protected override void Render(HtmlTextWriter output)
- {
- output.Write(Text);
- }
- }
- }
-